-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Entitlements] Make lookupImplementationMethod inheritance-aware
#122474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Entitlements] Make lookupImplementationMethod inheritance-aware
#122474
Conversation
|
Pinging @elastic/es-core-infra (Team:Core/Infra) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, though it's not directly obvious to me where this is required
That's because main is "lucky" :) and does not have to support Java < 21. So yes, there is not direct application for this here yet. |
💚 Backport successful
|
Forward-port of 9166b5d
While backporting #122232, I found that it is convenient to change
lookupImplementationMethodto have the same behaviour oflookupMethods; this way the lookup will always find the correct interface, without the need to specify it manually.Since the 2 functions now share the same basic structure, I refactored them to share a common helper and a consistent signature (exception thrown).